//
//  CQMineLoginHeadTableViewCell.m
//  HiChat
//
//  Created by dllo on 16/1/18.
//  Copyright © 2016年 wqiong. All rights reserved.
//

#import "CQMineLoginHeadTableViewCell.h"

@implementation CQMineLoginHeadTableViewCell
- (void)dealloc
{
    [_imageV release];
    [_labelUser release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self create];
    }
    return self;
}
- (void)create {    
    self.imageV = [[UIImageView alloc] initWithFrame:CGRectMake(20, 10, 60, 60)];
    self.imageV.layer.masksToBounds = YES;
    self.imageV.layer.cornerRadius = 30;
    [self.contentView addSubview:self.imageV];
    [_imageV release];
    
    self.labelUser = [[UILabel alloc] initWithFrame:CGRectMake(self.imageV.frame.origin.x + self.imageV.frame.size.width + 10, self.imageV.frame.origin.y, self.frame.size.width - 20 - self.imageV.frame.size.width, self.imageV.frame.size.height)];
    [self.contentView addSubview:self.labelUser];
    [_labelUser release];
}
- (void)awakeFromNib {
    // Initialization code
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
